connect ( $host, $username, $password, false ); $mysqlDB->selectDB ( $database ); $sid = @$_GET['sid']; session_id($sid); if ( !isset ( $_SESSION ) ) @session_start(); $word = isset ( $_SESSION['captcha_word'] ) && $_SESSION['captcha_word'] != '' ? $_SESSION['captcha_word'] : 'NONE'; $c = new Captcha_Generator(array( 'font' => dirname(__FILE__) . '/data/arial.ttf', 'width' => 200, 'height' => 50, 'font_size' => 20, 'wave_amp' => 10, 'bezier_line_thickness' => 1, )); $c->write($word); $c->output(); $c->destroy(); ?>